package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 教育经历对象 gw_staff_education
 *
 * @author ruoyi
 * @date 2025-04-27
 */
public class GwStaffEducation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 员工ID
     */
    @Excel(name = "员工ID")
    private String staffId;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    //@NotBlank(message = "学校名称必填，限输入50个字符")
    @Length(max = 50, message = "学校名称选填，限输入50个字符")
    private String schoolName;

    /**
     * 专业名称
     */
    @Excel(name = "专业名称")
    @Length(max = 50, message = "专业名称选填，限输入50个字符")
    private String major;

    /**
     * 入校日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入校日期", width = 30, dateFormat = "yyyy-MM-dd")
    //@NotNull(message = "入校日期必填")
    private Date enterDate;

    /**
     * 毕业日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "毕业日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date graduationDate;

    /**
     * 学历
     */
    @Excel(name = "学历")
    private String education;

    /**
     * 是否取得学历
     */
    @Excel(name = "是否取得学历")
    private String izGet;

    /**
     * 证书照片
     */
    @Excel(name = "证书照片")
    private String url;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getMajor() {
        return major;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setGraduationDate(Date graduationDate) {
        this.graduationDate = graduationDate;
    }

    public Date getGraduationDate() {
        return graduationDate;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getEducation() {
        return education;
    }

    public void setIzGet(String izGet) {
        this.izGet = izGet;
    }

    public String getIzGet() {
        return izGet;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("staffId", getStaffId()).append("schoolName", getSchoolName()).append("major", getMajor()).append("enterDate", getEnterDate()).append("graduationDate", getGraduationDate()).append("education", getEducation()).append("izGet", getIzGet()).append("url", getUrl()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark()).toString();
    }
}
